﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Demo05202
{
    class Square:Shape//正方形类
    {
        private double sideLen;
        public double Sidelen { get; set; }

        //引用父类
        public override void GetArea(double num1)
        {
            double area=0;
            area = num1 * num1;
            Console.WriteLine("边长是{0}的正方形面积是：{1}",num1,area);
        }
    }
}
